﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void AddressUserControl_SaveButtonClick(object sender, EventArgs e)
    {
        System.Diagnostics.Debug.WriteLine("Address: " +
AddressUserControl1.Address +
" City: " + AddressUserControl1.City +
" State or Province: " + AddressUserControl1.StateProvince +
" Postal Code: " + AddressUserControl1.PostalCode);
    }

    protected void Page_Init(object sender, EventArgs e)
    {
        AddressUserControl1.SaveButtonClick += this.AddressUserControl_SaveButtonClick;
    }

}
